import fetch from "./../fetch.js";

// 获取任课教师列表
const theTeacherList = (params) => {
  return fetch({
    url: "/teach/course/theTeacherList",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 添加任课教师
const theTeacherAdd = (params) => {
  return fetch({
    url: "/teach/course/theTeacherAdd",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 修改任课教师
const theTeacherUpdate = (params) => {
  return fetch({
    url: "/teach/course/theTeacherUpdate",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 删除任课教师
const theTeacherDelete = (params) => {
  return fetch({
    url: "/teach/course/theTeacherDelete",
    method: "post",
    data: JSON.stringify(params),
  });
};


export default {
  theTeacherList,
  theTeacherAdd,
  theTeacherUpdate,
  theTeacherDelete
}

